importScripts("../src/webrpc.js");

new webrpc.Service("sumService", {
    sum: function(num){
        var result = 0;
        for (var i = 1; i <= num; i++) {
            result += i;
        }
        return result;
    }
});
